﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CosmosKernel1
{
    class Calc
    {
        public static void unit()
        {
            Console.WriteLine("operation");
            string operation;
            operation = Console.ReadLine();
            uint user1, user2;
            user1 = ReadNum(0, 10000000, 10000001);
            user2 = ReadNum(0, 10000000, 10000001);
            if (operation == "*")
            {
                Console.WriteLine((user1 * user2).ToString());
            }
            if (operation == "-")
            {
                Console.WriteLine((user1 - user2).ToString());
            }
            if (operation == "+")
            {
                Console.WriteLine((user1 + user2).ToString());
            }
            if (operation == "/")
            {
                Console.WriteLine((user1 / user2).ToString());
            }


        }
        public static uint ReadNum(uint start, uint end, uint defualt)
        {
            uint a;
            string Userinput;
            Console.Write("first and two>");
            Userinput = Console.ReadLine();


            for (a = start; a <= end; a++)
            {
                if (a.ToString() == Userinput)
                {
                    return a;
                }

            }
            return defualt;




        }
    }
}
